﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_GROUP : BusinessObject
    {
        public int GroupID { get; set; }
        public string GroupName { get; set; }
        public bool? IsUse { get; set; }

        public SYS_GROUP()
        {
            AddRule(new ValidateRequired("GroupName"));
        }

        public SYS_GROUP(int groupID, string groupName, bool? isUse)
            : this()
        {
            GroupID = groupID;
            GroupName = groupName;
            IsUse = isUse;
        }
    }
}
